<?php
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

require_once('application/model/include_dao.php');
require_once('lib/template.class.php');
require_once('lib/html.class.php');
require_once('data.php');

//Name of the database
$database_name = 'library';
//Also should be included everywhere


ConnectionProperty::$database_path = $database_path;
ConnectionProperty::$database_name = $database_name;


if(!isset($_POST['controller']))
	$_POST['controller'] = "DocumentController";
if(!isset($_POST['model']))
	$_POST['model'] = "DocumentDAO";
if(!isset($_POST['action']))
	$_POST['action'] = "index";
if(!isset($_POST['parameters']))
	$_POST['parameters'] = array();

require_once 'lib/common.php';

